﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FeedBackList.aspx.cs" Inherits="Hxsoft.AppV1.Admin.FeedBackManage.FeedBackList" %>

<%@ Register Src="~/Controls/ListBox_FootBox.ascx" TagName="ListBox_FootBox" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ListBox_HeadBox.ascx" TagName="ListBox_HeadBox" TagPrefix="uc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
	<title>反馈管理</title>
	<script type="text/javascript" src="<%# ResolveUrl("~/J/List.js") %>"></script>
	<script language="javascript" type="text/javascript">
	<!--
	function ReloadPage()
	{
		var btReload = document.getElementById("<%# BtReload.ClientID %>");
		if ( btReload )
			btReload.click();
	}
	-->
	</script>
</head>
<body>
	<form id="form1" runat="server">
		<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
		<div id="MainBody" runat="server">
			当前位置: 管理中心 →[<%= SiteName %>] 反馈管理
			<uc:ListBox_HeadBox ID="ListBox_HeadBox2" runat="server" />
			<div class="ListBoxItem">
				<table id="ToolBarBox" cellspacing="0" width="100%">
					<tr>
						<td class="LevelCompart" align="right">
							<input type="button" class="Button" value="全选" onclick="SelectAllInner(&quot;List&quot;, &quot;&quot;);" />
							<input type="button" class="Button" value="反选" onclick="SelectReverseInner(&quot;List&quot;, &quot;&quot;);" />
							<input type="submit" id="BtDelete" value="删除" runat="server" class="Button" onclick="return confirm('是否删除选定的信息？');" onserverclick="BtDelete_ServerClick" />
						</td>
					</tr>
					<tr>
						<td id="Foot" style="height: 22px">
						<table>
						<tr>
						<td>
						    信息类别:<Hxctr:DicSelector ID="CtrlInfoType" ValueType="Value" ClassCode="<%# Hxsoft.AppV1.Module.FeedBacks.FeedBackDicClassCode %>" runat="server" />
							起始日期:<Hxctr:JSCalendarTextBox ID="CtrlBeginDate" runat="server" DateFormat="yyyy-MM-dd" Width="100" />
							<Hxctr:DateTimeValidator ID="DTVCtrlBeginDate" runat="server" ControlToValidate="CtrlBeginDate" Display="Dynamic" ErrorMessage="日期数据格式不符。" />
						    结束日期:<Hxctr:JSCalendarTextBox ID="CtrlEndDate" runat="server" DateFormat="yyyy-MM-dd" Width="100" />
						    <Hxctr:DateTimeValidator ID="DTVCtrlEndDate" runat="server" ControlToValidate="CtrlEndDate" Display="Dynamic" ErrorMessage="日期数据格式不符。" />
						    &nbsp;&nbsp;&nbsp;&nbsp;
							<asp:Button ID="BtSearch" runat="server" Text="搜索" OnClick="BtSearch_Click"  />
							|
							<asp:Button ID="BtReload" runat="server" Text="刷新" OnClick="BtReload_Click"/>
						</td>
						</tr>
						</table>
                        </td>
					</tr>
				</table>
			</div>
			<div class="ListBoxItem">
				<asp:UpdatePanel ID="UpdatePanel1" runat="server">
					<ContentTemplate>
				<table id="ListBox" cellspacing="0" width="100%">
					<tbody>
						<tr>
							<td class="LevelCompart">
								<asp:Repeater ID="List" runat="server" OnItemCommand="List_ItemCommand">
									<HeaderTemplate>
										<table id="List" cellspacing="1" cellpadding="2" width="100%">
											<tr id="Title">
												<th width="40">
													[ID]</th>
												<th>
													反馈意见</th>
												<th>
													联系方式</th>
												<th width="120">
													发布时间</th>
												<th width="40">
													修改</th>
												<th width="40">
													查看</th>
												<th width="40">
													选择</th>
											</tr>
									</HeaderTemplate>
									<ItemTemplate>
										<tr class="mouseout" align="center" onmouseover="listItem_mouseOver(this);" onmouseout="listItem_mouseOut(this);">
											<td>
												<%# Eval("FeedBackId")%>
											</td>
											<td align="left">
												<%# Eval("Summary")%>
											</td>
											<td align="left">
												<%# Eval("Opinion")%>
											</td>
											<td>
												<%# Eval("CreationDate")%>
											</td>
											<td>
												<a href="javascript:void(0);" onclick='javascript:OpenWindowCenter("FeedBackDetail.aspx?FeedBackID=<%# Eval("FeedBackId") %>&SiteId=<%# SiteId %>");'>查看</a>
											</td>
											<td>
												<asp:LinkButton ID="LbtDelete" CommandName="Delete" OnClientClick="return confirm(&quot;是否删除该信息？&quot;);" runat="server">删除</asp:LinkButton>
											</td>
											<td>
												<asp:CheckBox ID="CbSelect" runat="server" />
												<asp:HiddenField ID="Identifier_FeedBackID" Value='<%# Eval("FeedBackId") %>' runat="server" />
											</td>
										</tr>
									</ItemTemplate>
									<FooterTemplate>
										</table>
									</FooterTemplate>
								</asp:Repeater>
							</td>
						</tr>
						<tr>
							<td id="Td1" align="right">
								<Hxctr:AspNetPager ID="pager" runat="server" AlwaysShow="True" OnPageChanging="pager_PageChanging" CustomInfoSectionWidth="" CustomInfoText="" PageSize="20" ShowCustomInfoSection="Left">
								</Hxctr:AspNetPager>
							</td>
						</tr>
					</tbody>
				</table>
					</ContentTemplate>
					<Triggers>
						<asp:AsyncPostBackTrigger ControlID="BtDelete" EventName="ServerClick" />
						<asp:AsyncPostBackTrigger ControlID="BtReload" EventName="Click" />
						<asp:AsyncPostBackTrigger ControlID="BtSearch" EventName="Click" />
					</Triggers>
				</asp:UpdatePanel>
			</div>
			<uc:ListBox_FootBox ID="ListBox_FootBox1" runat="server" />
		</div>
		<Hxctr:MessageBox ID="MessageBox1" runat="server" />
		<Hxctr:UpdateProgress ID="UpdateProgress1" runat="server" />
	</form>
</body>
</html>